const getAddressList = require("./getAddressList/index");
const getAddressDetail = require("./getAddressDetail/index");
const addAddress = require("./addAddress/index");
const updateAddressDefault = require("./updateAddressDefault/index");
const updateAddress = require("./updateAddress/index");

// 云函数入口函数
exports.main = async (event, context) => {
    switch (event.type) {
        case "getAddressList":
            return await getAddressList.main(event, context);
        case "getAddressDetail":
            return await getAddressDetail.main(event, context);
        case "addAddress":
            return await addAddress.main(event, context);
        case "updateAddressDefault":
            return await updateAddressDefault.main(event, context);
        case "updateAddress":
            return await updateAddress.main(event, context);
    }
};